
package com.abaaba.project2.controller;

import com.abaaba.project2.bean.bo.AdminBo;
import com.abaaba.project2.bean.template.TemplateAdminInfo;
import com.abaaba.project2.bean.vo.BaseRespVo;
import com.abaaba.project2.bean.vo.RegionVo;
import com.abaaba.project2.service.AdminRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/admin/region")
public class AdminRegionController {

    @Autowired
    AdminRegionService adminRegionService;

    @RequestMapping("/list")
    public BaseRespVo list() {
        List<RegionVo> regionVoList = adminRegionService.getList();
        return BaseRespVo.ok(regionVoList);
    }

}

